﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Model;
using BLL;

namespace CarParking
{
    public partial class frmOutParking : Form
    {
        public Car car = null;
        public frmOutParking()
        {
            InitializeComponent();
        }

        private void labBill_Click(object sender, EventArgs e)
        {

        }

        private void frmOutParking_Load(object sender, EventArgs e)
        {
        
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            car = new Car();
            if (txtCarNumber == null)
                MessageBox.Show("请输入车牌号！","系统提示");
            car.EndTime = DateTime.Now;
            car.CarNumber = txtCarNumber.Text;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
